package com.class04.override.test1;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/8 16:00
 */
public class OrderTest {
    public static void main(String[] args) {
//        通过对象调用Order类中声明的属性
        Order order = new Order();
        order.orderDefault = 1;
        order.orderProtected = 1;
        order.orderPublic = 1;
        order.methodDefault();
        order.methodProtected();
        order.methodPublic();
//       受封装性的影响，不能访问
//        order.orderPrivate = 1;
//        order.methodPrivate();
//

    }
}
